package cn.stronglink.asset.module.maintenant.service;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import com.baomidou.mybatisplus.plugins.Page;
import cn.stronglink.asset.module.maintenant.mapper.MaintenantMapper;
import cn.stronglink.asset.module.maintenant.vo.MaintenantVo;

@Service
@Transactional(rollbackFor=Exception.class)
public class MaintenantService {
	
	@Autowired
	private MaintenantMapper maintenantMapper;

	@Transactional(propagation=Propagation.NOT_SUPPORTED,readOnly=true)
	public Page<MaintenantVo> getListByParams(Page<MaintenantVo> page, Map<String, Object> params) {
		 List<MaintenantVo> list = maintenantMapper.getListByParams(page,params);
		 page.setRecords(list);
		 return page;
	}
}
